/*
 * ListParameterizedType
 * Copyright (c) 2019 taisu Inc., All rights reserved.
 * This software is the confidential and proprietary information of
 * taisu Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with tysu.com.cn.
 */

package com.ymk.bo;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;

public class ListParamType implements ParameterizedType {
    private Type type;

    public ListParamType(Type type) {
        this.type = type;
    }

    @Override
    public Type[] getActualTypeArguments() {
        return new Type[] {type};
    }

    @Override
    public Type getRawType() {
        return ArrayList.class;
    }

    @Override
    public Type getOwnerType() {
        return null;
    }
}
